package nsd.test.zy01;

public class Vehicle {
    private String brand;
    private String color;
    private double speeed;

    public Vehicle() {
    }

    public Vehicle(String brand, String color, double speeed) {
        this.brand = brand;
        this.color = color;
        speeed=0;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public double getSpeeed() {
        return speeed;
    }

    public void setSpeeed(double speeed) {
        this.speeed = speeed;
    }

    public void run(){
        System.out.println(getColor()+"的"+getBrand()+"的速度是"+getSpeeed());
    }

}
